package com.stooscloud.core.config;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;

public class UpperCasePropertyNamingStrategy extends PropertyNamingStrategy.PropertyNamingStrategyBase {
    private static final long serialVersionUID = -7911539294140247157L;

    @Override
    public String translate(String propertyName) {
        return propertyName.replaceAll("^\\w", propertyName.toUpperCase().substring(0,1));
    }
}
